import { useEffect } from "react";
// import { PageContainer } from '@ant-design/pro-components';
import PageContainer from "@/components/PageContainer";
import { connect } from "umi";

import FilterForm from "./components/filterForm";
import PageTable from "./components/pageTable";

const Log = (props: any) => {
  const { dispatch } = props;
  useEffect(() => {
    dispatch({
      type: "SystemOperateLog/pageInit",
    });
  }, []);

  return (
    <PageContainer>
      <FilterForm />
      <PageTable />
    </PageContainer>
  );
};

export default connect((state: any) => ({
  ...state.SystemOperateLog,
}))(Log);
